import serve from './../Base/Http.js'
import qs from 'qs'
// 数据列表
export default {
    comments(allPages,ruleForm) {
        return serve({
            method: 'get',
            params: {
                _gp: "admin.appraise",
                _mt: "getAppraiseList",
                // 查询
                id:ruleForm.id,
                userName:ruleForm.userNickName,
                spuName:ruleForm.spuTitle,
                content:ruleForm.content,
                //分页
                pageNo: allPages.currentPage,
                limit: allPages.eachpage
            }
        })
    },
    //删除
    handleDeletec(data) {
        return serve({
            method: 'post',
            data: qs.stringify(
                {
                    _gp: "admin.appraise",
                    _mt: "deleteAppraise",
                    ...data
                }
            )
        })
    },
}